<layout name='Layout/ace_layout' />
{:W('PageHeader',array('name'=>'日志查询','search'=>'M'))}
<form method="post" name="form_adv_search" id="form_adv_search">
	<div class="adv_search panel panel-default  display-none"  id="adv_search">
		<div class="panel-heading">
			<div class="row">
				<h4 class="col-xs-6">高级搜索</h4>
				<div class="col-xs-6 text-right">
					<a  class="btn btn-sm btn-info" onclick="submit_adv_search();">搜索</a>
					<a  class="btn btn-sm " onclick="close_adv_search();">关闭</a>
				</div>
			</div>
		</div>
		<div class="panel-body">
			<eq name="auth.admin" value="true">
			<div class="form-group col-sm-6">
				<label class="col-sm-4 control-label" for="eq_dept">部门：</label>
				<div class="col-sm-8">
					<select class="form-control">
						<option>选择部门</option>
						{$dept_list}
					</select>
				</div>
			</div>
			<div class="form-group col-sm-6">
				<label class="col-sm-4 control-label" for="eq_user_id">登录人：</label>
				<div class="col-sm-8">
					<select class="form-control">
						<option>选择人员</option>
						{:fill_option($emp_list)};
					</select>					
				</div>
			</div>
			</eq>			
			<div class="form-group col-sm-6">
				<label class="col-sm-4 control-label" for="li_content">内容：</label>
				<div class="col-sm-8">
					<input  class="form-control" type="text" id="li_content" name="li_content" >
				</div>
			</div>
			<div class="form-group col-sm-6">
				<label class="col-sm-4 control-label" for="bt_create_time">登录时间：</label>
				<div class="col-sm-8">
					<input data-date-format="yyyy-mm-dd" class="form-control input-date-range" type="text" name="bt_create_time" id="bt_create_time"    readonly="readonly">
				</div>
			</div>
		</div>
	</div>
</form>
<div class="operate panel panel-default">
	<div class="panel-body">
		<div class="pull-right">
			<a class="btn btn-sm btn-primary" onclick="add()">新建</a>
		</div>
	</div>
</div>
<empty name="list">
	<ul class="">
		<li class="no-data">
			没找到数据
		</li>
	</ul>
	<else/>
	<foreach name="list" item="vo">
		<div class="work_log_box">
			<div class="work_log_head clearfix">
				<div class="col-sm-3  col-xs-6">
					<nobr>
						姓名：{$vo.user_name}
					</nobr>
				</div>
				<div class="col-sm-3  col-xs-6">
					<nobr >
						部门：{$vo.dept_name}
					</nobr>
				</div>
				<div class="col-sm-6 col-xs-12">
					<nobr>
						<eq name="vo.user_id" value="$user_id">
							<a href="{:U('edit?id='.$vo['id'])}"> 时间：{$vo.start_date} - {$vo.end_date}</a>	
						<else/>
							时间：{$vo.start_date} - {$vo.end_date}
						</eq>
						
					</nobr>
				</div>
			</div>
			<div class="content_box col-sm-6 col-xs-12">
				<div class="title text-center row">
					本周工作内容
				</div>
				<div class="content">
					{$vo.content}
				</div>
			</div>
			<div class="plan_box col-sm-6 col-xs-12">
				<div class="title text-center row">
					下周工作计划
				</div>
				<div class="content">
					{$vo.plan}
				</div>
			</div>
		</div>
		<div class="space-12"></div>
	</foreach>
</empty>
</div>
<div class="pagination">{$page}</div>
<div id="sample" class="display-none">
	<li class="tbody">
		<div class="col-sm-7">
			<span style="width:25%;" class="text-center name"></span>
			<span style="width: 35%" class="text-center position"></span>
			<span style="width: 35%" class="text-center rank"></span>
		</div>
		<div class="col-sm-5">
			<span style="width:100%;" class="email"></span>
		</div>
	</li>
</div>
